package cn.wolfcode.trip.base.service;


import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;


public interface IUserService {


    /**
     * 保存/更新员工信息
     * @param user
     */
    void saveOrUpdate(User user);

    User selectEmailAndPassword(String email, String password);

    PageInfo query(QueryObject qo);

    boolean selectAttention(Long fansId, Long attentionId);

    void saveRelation(Long fansId, Long attentionId);

    void deleteRelation(Long fansId, Long attentionId);

    Map<String,Object> queryNum(Long id);



    /**
     * 查询收藏
     * @param userId 用户id
     * @param travelId 文章id
     * @return 收藏结果
     */
    boolean getCollectRelation(Long userId, Long travelId);
    /**
     * 删除收藏
     * @param userId 用户id
     * @param travelId 文章id
     */
    void deleteCollect(Long userId, Long travelId);
    /**
     * 添加收藏
     * @param userId 用户id
     * @param travelId 文章id
     */
    void saveCollect(Long userId, Long travelId);

    Object listLike(User user);

    User queryUserById(Long userId);

    User selectAllProducts(Long userId);

    PageInfo queryTravelList(QueryObject qo);

    Boolean queryIsExist(Long userId, Long strategyId);

    void saveTravelList(Long userId, Long strategyId);
}

